//
//  YLMonthlyBillCalendarCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/27.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLMonthlyBillCalendarCell.h"
#import "YLMonthlyBillCalendarListModel.h"
#import "YLGlobeHeader.h"
@interface YLMonthlyBillCalendarCell ()
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *infoTextLabel;
@property (weak, nonatomic) IBOutlet UIView *colorLine;

@end


@implementation YLMonthlyBillCalendarCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(YLMonthlyBillCalendarListModel *)model
{
    _model = model;
    _timeLabel.text = model.day;
    _infoTextLabel.text = model.infoText;
    
     if (model.infoType == 0) {
     _colorLine.backgroundColor = [UIColor orangeColor];
     } else if (model.infoType == 1) {
     _colorLine.backgroundColor = YLLOrgColor;
     } else {
     _colorLine.backgroundColor = YLMainColor;
     }
    
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (NSString *)cellID
{
    return @"YLMonthlyBillCalendarCell";
}

@end
